package com.wang.users.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wang.demo.pojo.AtDemoDynasty;
import com.wang.demo.pojo.AtDemoDynastyQuery;
import com.wang.users.pojo.AtRbacAdminsQuery;
import com.wang.users.pojo.AtUsersOrgan;
import com.wang.users.pojo.AtUsersOrganQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 针对表【at_rbac_menu(菜单表)】的数据库操作Mapper
 *
 * @author Administrator
 */
@Mapper
public interface AtUsersOrganMapper extends BaseMapper<AtUsersOrgan> {
    /**
     * 分页查询
     *
     * @param page     分页对象
     * @param paramObj 搜索条件
     * @return 返回分页列表
     */
    List<AtUsersOrgan> findList(IPage<AtUsersOrgan> page, @Param("param") AtUsersOrganQuery paramObj);

    /**
     * 查询全部(不分页)
     * @param query
     * @return
     */
    List<AtUsersOrgan> findList(@Param("param") AtUsersOrganQuery query);

    /**
     * 批量删除
     * @param query
     * @return
     */
    int deleteBatch(@Param("param") AtUsersOrganQuery query);

    /**
     * 查询全部,不分页
     *
     * @param paramObj 搜索条件
     * @return 返回列表
     */
    AtUsersOrgan findOne(@Param("param") AtUsersOrganQuery paramObj);

    /**
     * 批量更新
     * @param query
     * @return
     */
    int updateBatch(@Param("param") AtUsersOrganQuery query);
}